using System;
using System.Text.RegularExpressions;

namespace FU.Capstones.IMS.Services.Common
{
    public static class StringExtension
    {
        public static string RemoveVietnameseSigns(this string source)
        {
            Regex regex = new Regex(@"\p{IsCombiningDiacriticalMarks}+");
            string strFormD = source.Normalize(System.Text.NormalizationForm.FormD);
            return regex.Replace(strFormD, String.Empty).Replace('\u0111', 'd').Replace('\u0110', 'D');
        }
    }
}